package com.crm.CLdriving.controller;

import com.alibaba.fastjson.JSONObject;
import com.crm.CLdriving.entry.RespMess;
import com.crm.CLdriving.util.JedisUtils;
import com.crm.CLdriving.util.YmlUtils;
import redis.clients.jedis.Jedis;
import springfox.documentation.service.ResponseMessage;

import java.io.FileNotFoundException;
import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * @author 陈龙
 * @Auther:
 * @Date: 2021-05-25 16:08
 * @Description:
 */
public class Test {
    private static String port = YmlUtils.getValue("server.port");



    public static void main(String[] args) throws ParseException, FileNotFoundException {
        JedisUtils jedisUtils = JedisUtils.getInstance();
        Jedis jedis = jedisUtils.getJedis();
        try{
            if(jedis.exists("a")){
                System.out.println(jedis.get("a"));
            }
            System.out.println(jedis.get("c"));
            for (int i = 0; i < 5; i++) {
                System.out.println(port+"=========>" + i);
            }
        }catch(Exception e){
            e.printStackTrace();
        }finally {
            jedis.close();
        }

    }

}
